package com.ai.exam.util;

/**
 * Date:  2018/4/24
 * Time:  10:11
 * Email: siy@hmgsoft.com
 * Created by siy
 */
public enum ResultCode {
    SUCCESS("OK","SUCCESS"),
    FAIL("内部业务错误","FAIL"), //业务逻辑请求错误
    NOTFOUND("资源不存在","NOTFOUND"), //资源不存在
    ERR("异常","ERR"); //异常

    private String msg;
    private String code;

    ResultCode(String msg, String code) {
        this.msg = msg;
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
